package com.ruoyi.order.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 orders
 * 
 * @author dxp
 * @date 2024-02-13
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String number;

    /** 用户名称 */
    private Long userId;

    /** 收货地址 */

    private String addressId;

    /** 订单状态 0 未支付 1已支付 */
    @Excel(name = "订单状态 0 未支付 1已支付")
    private Long status;

    /** 发货状态: 0未发货 1已发货 */
    @Excel(name = "发货状态: 0未发货 1已发货")
    private Long shipmentsStatus;
    @Excel(name = "实付")
    private Double actualPrice;

    public Double getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(Double actualPrice) {
        this.actualPrice = actualPrice;
    }

    /** 订单明细信息 */
    private List<OrderDetail> orderDetailList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAddressId(String addressId) 
    {
        this.addressId = addressId;
    }

    public String getAddressId() 
    {
        return addressId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setShipmentsStatus(Long shipmentsStatus) 
    {
        this.shipmentsStatus = shipmentsStatus;
    }

    public Long getShipmentsStatus() 
    {
        return shipmentsStatus;
    }

    public List<OrderDetail> getOrderDetailList()
    {
        return orderDetailList;
    }

    public void setOrderDetailList(List<OrderDetail> orderDetailList)
    {
        this.orderDetailList = orderDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("addressId", getAddressId())
            .append("status", getStatus())
            .append("shipmentsStatus", getShipmentsStatus())
            .append("orderDetailList", getOrderDetailList())
            .toString();
    }
}
